package com.microcore.service.asserts.model;

import java.util.List;

/**
 * 断言结果
 *
 * @author LiuChunfu
 * @date 2019.01.12
 */
public class AssertResult {

    private boolean success = false;

    private List<AssertMessage> messages;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public List<AssertMessage> getMessages() {
        return messages;
    }

    public void setMessages(List<AssertMessage> messages) {
        this.messages = messages;
    }

    @Override
    public String toString() {
        return "{" +
                "\"success\" : " + success +
                ", \"messages\" : " + messages +
                '}';
    }
}
